package com.zzx.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;
import com.zzx.model.User;
import com.zzx.service.IUserService;
@RestController
public class PageController {
	@Resource  
	private IUserService userService;
	
	@RequestMapping(value="/dataList.do",method=RequestMethod.POST)  
	public List<Map<String,String>> queryDataList(HttpServletRequest request,User model){
		 Map<String,String> map = new HashMap<String,String>();
	     List<Map<String,String>> list = this.userService.queryUserList(map);
	     System.err.println("**sql***"+list.toString());
	     //String str = JSON.toJSONString(object)
		return list;  
	}
}
